package com.yuan.fullstackback.model.userRequest;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class PasswordRequest {
    @NotBlank
    private String oldPassword;
    @Size(min = 5, max = 50, message = "密码长度5-50个字符")
    private String newPassword;
}
